package com.levi.SimpleFactoryMode.Operation;

/**
 * @author Levi
 * @description :  抽象类Operation
 * @since 2022/8/31 10:42
 */

public abstract class Operation {
    private double numberA = 0;
    private double numberB = 0;

    //    setter
    public void setNumberA(double numberA) {
        this.numberA = numberA;
    }

    public void setNumberB(double numberB) {
        this.numberB = numberB;
    }

    //    getter
    public double getNumberA() {
        return this.numberA;
    }

    public double getNumberB() {
        return this.numberB;
    }

    //    虚方法：获取运算结果
    public abstract double getResult();
}
